package org.ghost.wechat.platform.dto.wechat.material;

import com.fasterxml.jackson.annotation.JsonProperty;
import org.ghost.wechat.platform.dto.WeChatErrorRspDTO;

import java.util.List;

/**
 * @author 01
 */
public class WeChatBatchGetMaterialRspDTO<T> extends WeChatErrorRspDTO {
    private static final long serialVersionUID = 8044202143842484866L;

    /**
     * 该类型的素材的总数
     */
    private Integer totalCount;
    /**
     * 本次调用获取的素材的数量
     */
    private Integer itemCount;

    private List<T> item;


    public Integer getTotalCount() {
        return totalCount;
    }

    @JsonProperty(value = "total_count")
    public void setTotalCount(Integer totalCount) {
        this.totalCount = totalCount;
    }

    public Integer getItemCount() {
        return itemCount;
    }

    @JsonProperty(value = "item_count")
    public void setItemCount(Integer itemCount) {
        this.itemCount = itemCount;
    }

    public List<T> getItem() {
        return item;
    }

    public void setItem(List<T> item) {
        this.item = item;
    }

    @Override
    public String toString() {
        return "WeChatBatchGetMaterialRspDTO{" +
                "totalCount=" + totalCount +
                ", itemCount=" + itemCount +
                ", item=" + item +
                ", errCode=" + errCode +
                ", errMsg='" + errMsg + '\'' +
                '}';
    }
}
